<?php

require_once "core/application/models/mipforce/mipforce1.php";

class Mipforce2 extends Mipforce1 {

    private $_query;

    protected function setRestrictIp($ip) {
        /**
         * @param mixed $ip
         * @return true or false
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "UPDATE `account_data` SET `ip_force` = '$ip' WHERE `name` = '$_SESSION[name]'";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
